﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="AdminCategory.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminCategory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <h1>
        <asp:Label ID="lbAdminCategory" runat="server" Text="Kategorier Leder"></asp:Label>
    </h1>
    <table cellspacing="0" cellpadding="0" class="data-table">
        <tr>
            <td colspan="2">
                <span class="failureNotification">
                    <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                </span>
                <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="LoginUserValidationGroup" />
            </td>
        </tr>
        <tr>
           <td align="right">
                <asp:Label ID="lbCategoryName" runat="server"> Kategori Navn:</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtCategoryName" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rCategory" runat="server" ControlToValidate="txtCategoryName"
                    ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ErrorMessage="Name is required."
                    ToolTip="Name is required." Text="*" />
            </th>
        </tr>
        <tr>
           <td align="right">
                <asp:Label ID="lbDescription" runat="server">Beskrivelse:</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtDescription" runat="server" CssClass="textEntry"></asp:TextBox>
            </th>
        </tr>
        <tr>
           <td align="right">
                <asp:Label ID="Label1" runat="server">Parent:</asp:Label>
            </td>
            <th>
                <asp:DropDownList ID="ddlCategorys" runat="server" CssClass="textEntry" >                        
                    </asp:DropDownList>
            </th>
        </tr>
         <tr>
                    <td align="right">
                        <asp:Label ID="Label2" runat="server">Bestilling:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtOrdering" runat="server" CssClass="textEntry" Width="30"></asp:TextBox>
                    </th>
                </tr>
         <tr>
                    <td align="right">
                        <asp:Label ID="lbPictureUrl" runat="server">Bilde url:</asp:Label>
                    </td>
                    <th>
                        <asp:FileUpload ID="fuPictureUrl" runat="server" CssClass="textEntry" />
                    </th>
                </tr>
         <tr>
                    <td align="right">
                       
                    </td>
                    <th>
                        <asp:Image ID="ImagCategory" Height="200" Width="200" runat="server" />
                    </th>
                </tr>
        <tr>
            <td>
            </td>
            <th>
                <asp:Button ID="btnSave" runat="server" Text="Lagre" ValidationGroup="LoginUserValidationGroup"
                    OnClick="btnSave_Click" />
                &nbsp;<asp:Button ID="btnapply" runat="server" Text="Gjelder" 
                    onclick="btnapply_Click" />
&nbsp;<asp:Button ID="btnBack" runat="server" Text="Avbryt" OnClick="btnBack_Click" />
            </th>
        </tr>
    </table>
</asp:Content>
